package org.ex;

import java.util.Date;

public class Demo {
    public static void main(String[] args) {
        A a = new B();
        a.print();
        //((B)a).print();

        B b = new B();
        System.out.println(b instanceof A);

        System.out.println(max(6,7.5,8));

    }


    public static Number max(Number ...n){
        if(n.length>1){
            double t = n[0].doubleValue();
            System.out.println(t);
        }
        return null;
    }
}
